<?php
namespace Common\Base;

use Think\Controller;

class ControllerBase extends Controller
{
    //空操作处理
    public function _empty()
    {
        $this->_404();
    }

    /**
     * 404
     *
     * @param string $url
     *
     * @return void
     */
    public function _404($url = '')
    {
        $url = trim($url);
        if($url != '')
        {
            $this->redirect($url);
        }
        else
        {
            send_http_status(404);
            $this->display('Public/404');
        }
    }
}